package model;

import java.io.FileNotFoundException;
import java.io.IOException;


public class TeacherData extends GenericDataHolder <Teacher>{

	public TeacherData() throws IOException{
		super();
	}
		
	public void save() throws FileNotFoundException {
		this.getPersistenceManager().save(getItems());
	}

	@Override
	public Teacher[] loadItems() throws NumberFormatException, IOException {
		return this.getPersistenceManager().loadTeachers();
	}

	@Override
	public Teacher[] createArray(int size) {
		return new Teacher[size];
	}

}
